package person.twj;

import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.authentication.ProviderManager;
import org.springframework.security.core.Authentication;

import java.util.ArrayList;

public class TestMain2 {
    public static void main(String[] args) {
        Authentication anAuthentication = new AnonymousAuthenticationToken("1","1",new ArrayList<>());


        ProviderManager providerManager = new ProviderManager();
        Authentication authentication = providerManager.authenticate(anAuthentication);


    }
}
